package com.geek.entity;

import java.time.LocalDateTime;
import java.util.List;


public class Orders {

    private Integer id;
    private Integer userId;
    private String number;
    private LocalDateTime createtime;
    private String note;
    private User user;
    private List<OrderDetails> orderDetails;


    public Orders() {
    }

    public Orders(Integer id, Integer userId, String number, LocalDateTime createtime, String note, User user, List<OrderDetails> orderDetails) {
        this.id = id;
        this.userId = userId;
        this.number = number;
        this.createtime = createtime;
        this.note = note;
        this.user = user;
        this.orderDetails = orderDetails;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userId
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return number
     */
    public String getNumber() {
        return number;
    }

    /**
     * 设置
     * @param number
     */
    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * 获取
     * @return createtime
     */
    public LocalDateTime getCreatetime() {
        return createtime;
    }

    /**
     * 设置
     * @param createtime
     */
    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    /**
     * 获取
     * @return note
     */
    public String getNote() {
        return note;
    }

    /**
     * 设置
     * @param note
     */
    public void setNote(String note) {
        this.note = note;
    }

    /**
     * 获取
     * @return user
     */
    public User getUser() {
        return user;
    }

    /**
     * 设置
     * @param user
     */
    public void setUser(User user) {
        this.user = user;
    }

    /**
     * 获取
     * @return orderDetails
     */
    public List<OrderDetails> getOrderDetails() {
        return orderDetails;
    }

    /**
     * 设置
     * @param orderDetails
     */
    public void setOrderDetails(List<OrderDetails> orderDetails) {
        this.orderDetails = orderDetails;
    }

    public String toString() {
        return "Orders{id = " + id + ", userId = " + userId + ", number = " + number + ", createtime = " + createtime + ", note = " + note + ", user = " + user + ", orderDetails = " + orderDetails + "}";
    }
}
